package cn.kgc.mushroomcommon.pojo;

import java.util.ArrayList;
import java.util.List;

public class Type {
    private Integer id;

    private Integer tidfather;

    private String typename;

    private List<Type> childrens = new ArrayList<>();

    private Shoptype shoptype;

    public Shoptype getShoptype() {
        return shoptype;
    }

    public void setShoptype(Shoptype shoptype) {
        this.shoptype = shoptype;
    }

    public Type(Integer id, Integer tidfather, String typename) {
        this.id = id;
        this.tidfather = tidfather;
        this.typename = typename;
    }

    public Type() {
    }

    public List<Type> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<Type> childrens) {
        this.childrens = childrens;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTidfather() {
        return tidfather;
    }

    public void setTidfather(Integer tidfather) {
        this.tidfather = tidfather;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename == null ? null : typename.trim();
    }
}